// 页面路径：store/index.js 
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex); //vue的插件机制
// import tabBar from '@/utils/tabbar.js'
//Vuex.Store 构造器选项
const store = new Vuex.Store({
	state: { //存放状态
		IMAGE_URL: 'http://88.fuliaoxx.com',
		classobj: null,
		dpxsdata: {},
		tabBarList: [],
		roleId: 1, //1.家长，2。老师，3.管理员，
		sharelink:'http://crm.88ff.biz/mobileReg/ss/index.shtml'
	},
	mutations: {
		getclassobj(state, obj) {
			state.classobj = obj
		},
		setdpxsdata(state, obj) {
			state.dpxsdata = obj
		},
		setRoleId(state, data) {
			
		}
	}
})
export default store